Hotfix Policy
Purpose​
A hotfix is an urgent production fix. It is used only for production issues that cannot wait for the normal deployment flow.
Hotfix Flow​
- Create a branch from
productionnamedhotfix/<name> - Make the smallest possible fix
- Open a PR from
hotfix/<name>toproduction - Merge the PR into
production - A reconciliation PR from
productiontomainwill be opened automatically - Review the opened PR, once approved it will be automatically merged using a merge commit
Rules​
- Hotfixes must be minimal and focused only on the production issue
- Do not include unrelated refactors, cleanup, or feature work
- Do not create hotfix branches from
main - Do not commit directly to
production - A hotfix is not complete until the reconciliation PR to
mainis merged
Merge Strategy​
hotfix/* to production​
Squash merge is allowed and recommended.
production to main reconciliation​
Auto merge enabled (review is required)
If Reconciliation Conflicts​
If the reconciliation PR from production to main has conflicts, resolve them immediately and complete the PR.
If the hotfixed code no longer exists on main, keep the correct main version and still complete the reconciliation PR.
Summary​
Hotfix from production
Merge to production
Merge production back to main